import 'dart:async';

import 'package:flutter/material.dart';
import 'package:jet_rails/jr_app/jr_app.dart';
import 'package:jet_rails/jr_utils/jr_device.dart';
import 'package:jet_rails/jr_utils/jr_logger.dart';
import 'package:jet_rails/jr_utils/jr_shared_preferences.dart';

void main() {
  runZonedGuarded(
    () async {
      WidgetsFlutterBinding.ensureInitialized();
      await JrSP.init();
      await JrDevice.init();
      runApp(const JrApp());
    },
    (Object e, StackTrace s) {
      JrLogger.e('zone: $e $s');
    },
  );
}
